package com.gxa.shop.feign;/**
 * @author JunYu
 * @create 2022-10-05--22:35
 */

import com.gxa.api.user.TestUserApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: take-out-project
 *
 * @description: 测试feign
 *
 * @author: JunYu
 *
 * @create: 2022-10-05 22:35
 **/

@RestController
public class TestUserFeign {
    @Autowired(required = false)
    TestUserApi userApi;
    @GetMapping(value = "/testFeign", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public String TestFeign(){
        String test = userApi.Test();
        return test;
    }

}
